package com.sishu.service;

import com.sishu.pojo.Questionlibrary;
import com.sishu.pojo.dto.Questionlibrarydto;
import com.sishu.utils.Result;

import java.util.List;

public interface QuestionlibraryService {


    //随机获取题目
    Result getrandomquestion(String classification);

    //判断答案是否正确
    Result answerrandomquestion(Integer questionId, String answer);

    //随机获取题目
    Result getrandomquestionbyclasshour(Integer classHour, String classification);


    //添加题目
    Result insertquestion(List<Questionlibrary> questionlibrary);

    //判断复活答案是否正确
    Result answerrevivequestion(List<Questionlibrarydto> answers);

}
